<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
		}, 
		onShow: async function() {
			console.log('App Show')
			var that = this
			// setInterval(async () => {
			// 	var ss = uni.getStorageSync('nickName') || '请先登录';
			// 	if (ss != '请先登录') {
			// 		var count = await that.$api.queryNoticeCount();
			// 		console.log(count)
			// 		if (count == 0) {
			// 			uni.removeTabBarBadge({
			// 				index: 1,
			// 			})
			// 		}else{
			// 			uni.setTabBarBadge({
			// 				index: 1,
			// 				text: count + ''
			// 			})
			// 		}
			// 	}
			// }, 2000)


		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/* 	@font-face {font-family: 'iconfont';
	    src: url('./common/font/iconfont.eot');
	    src: url('./common/font/iconfont.eot?#iefix') format('embedded-opentype'),
	    url('./common/font/iconfont.woff') format('woff'),
	    url('./common/font/iconfont.ttf') format('truetype'),
	    url('./common/font/iconfont.svg#iconfont') format('svg'); 
	} */

	/* @import url("./common/font/iconfont.css");//at.alicdn.com/t/font_2073466_dm1hhexy73.css */
	@import "./common/font/iconfont.css";
	@import "./common/util/util.css";
	@import "./common/styles/index.scss";
</style>
